<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title><?=$page_title?></title>
		<link rel="stylesheet" type="text/css" href="<?=site_url('public/css/cssnormalize-min.css')?>" />
	</head>
	<body>
		<div>This is Header
			<?php if ($this -> session -> userdata('logged_in')) { ?>
				<div>Welcome <?=$username?>!</div>
				<?=anchor('logout','Logout') # this will go to login/logout in controller ?>
			<?php } else { ?>
				<?=anchor('login','Login')?>
			<?php } ?>
		</div>
		<br>
		<div><?php $this -> load -> view('navigation'); ?></div>
		<br>
		<div><?=$contents?></div>
		<br>
		<div>This is Footer
			<?=anchor('welcome', 'Welcome')?>
		</div>
	</body>
</html>